import './index.scss'
import './index'
import React from 'react'
export default function Block(props){ //type 0正常 1离线 2异常
    const {title,count,type,width,height}=props

    return(
        <div style={{width:width+'px',height:height+'px'}} className={`block ${type==1?'outLive':type==2?'onNomal':''}` } >
            <h3 className={`block_title ${type==1?'ccc':type==2?'red_FF7':'light_80'}`}>{title||'节点数量'}</h3>
            <h3 className={`block_count ${type==1?'ccc':type==2?'red_FF7':'light_333'}`}>{React.$formNum(count)||React.$formNum(1000)}</h3>
        </div>
    )
}